/*****************************************************************************
 * Copyright (C) Stacy Curl. All rights reserved.                            *
 * ------------------------------------------------------------------------- *
 * The software in this package is published under the terms of the BSD      *
 * style license a copy of which has been included with this distribution in *
 * the LICENSE.txt file.                                                     *
 *****************************************************************************/
package picounit.features.ruby_string.delayed;

import moved.org.objectweb.asm.AnnotationVisitor;

public class DescribedAnnotation implements AnnotationInstruction {
	private final String name;
	private final String desc;
	private final DelayedAnnotationMutator delayedAnnotationMutator;

	public DescribedAnnotation(String name, String desc,
		DelayedAnnotationMutator delayedAnnotationMutator) {

		this.name = name;
		this.desc = desc;
		this.delayedAnnotationMutator = delayedAnnotationMutator;
	}

	public void accept(AnnotationVisitor annotationVisitor) {
		delayedAnnotationMutator.accept(annotationVisitor.visitAnnotation(name, desc));
	}

	public void inform(AnnotationInstruction annotationInstruction) {
	}
}
